/* Descripcion del programa
   nombrearch.c
*/
#include <stdio.h>

/* funcion main, el programa inicia aca */
int main( void )
{
    int miles, gasoline, milespergallon, parking, tolls;
    int total;

    printf( "Enter the total miles driven on a day: " );
    scanf( "%d", &miles );
    printf( "Enter the cost per gallon of gasoline: " );
    scanf( "%d", &gasoline );
    printf( "Enter the average miles per gallon: " );
    scanf( "%d", &milespergallon );
    printf( "Enter the parking fees per day: " );
    scanf( "%d", &parking );
    printf( "Enter the tolls per day: " );
    scanf( "%d", &tolls );

    total = miles / ( gasoline * milespergallon ) + parking + tolls;

    printf( "Per day, you spend %d$ in your car\n", total );
	return 0;
} /* fin de la funcion main */
